<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<h:head>
	<title><ui:insert name="title">WebLab UFRN</ui:insert></title>
	<style type="text/css">
		.ui-widget {
			font-size: 12px !important;
		}
		.ui-layout-north {
			z-index: 40 !important;
			overflow: visible !important;
		}
		.ui-layout-north .ui-layout-unit-content {
			overflow: visible !important;
		}
		.ui-widget-header {
			border: 1px solid #a8a8a8;
			background: navy;
			font-weight: bold;
			color: white;
			text-shadow: none;
		}	
	</style>
</h:head>

<h:body>

	<div id="header">
		<ui:insert name="header">
			<ui:include src="header.xhtml" />
		</ui:insert>
	</div>

	<ui:insert name="menu">
		<h:form>
			<p:menubar>
				<p:menuitem value="Home" url="/index.xhtml" icon="ui-icon-home" />
				<p:menuitem value="Cadastrar experimento" action="#{experimentMBean.preCadastrar()}"/>
				<p:menuitem value="Listar experimentos" url="/experiment/list.xhtml" />
				<p:menuitem value="Cadastrar usuário" url="/user/form.xhtml" rendered="#{userMBean.admin}"/>
				<p:menuitem value="Listar usuários" url="/user/list.xhtml" rendered="#{userMBean.admin}"/>
				<p:menuitem value="Sair" url=" #{facesContext.externalContext.requestContextPath}/j_spring_security_logout" />
				
			</p:menubar>
			<p:messages id="msg" showDetail="true" autoUpdate="true" closable="true" />
		</h:form>
	</ui:insert>

	<div id="content" style="min-height: 400px">	
<!-- 		<p:messages id="msg" showDetail="true" autoUpdate="true" closable="true" /> -->
		<ui:insert name="content">
    	Conteúdo aqui
		</ui:insert>
	</div>

</h:body>

</html>